<div class="modal-header">
    <h5 class="modal-title" id="exampleModalLongTitle">网页配置</h5>
    <div style="float: right">
        <button ng-click="parse()" type="button" class="btn btn-primary" data-toggle="modal"
                data-target="#parse">
            修改解析规则
        </button>
    </div>
</div>
<div class="modal-body">
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-id">id</span>
        </div>
        <input ng-model="updateData.id" readonly type="text" class="form-control" aria-label="Default"
               aria-describedby="inputGroup-sizing-id"/>
    </div>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-describe">url_describe</span>
        </div>
        <input ng-model="updateData.seedDescribe" type="text" class="form-control" aria-label="Default"
               aria-describedby="inputGroup-sizing-describe"/>
    </div>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text">url</span>
        </div>
        <textarea ng-model="updateData.seedUrl" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>

    </div>


    <div class="input-group mb-3">
       <!-- <div class="input-group-prepend">
            <span class="input-group-text">url_type</span>
        </div>
        <textarea ng-model="updateData.seedUrl" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>-->
        <div class="input-group-prepend">
            <label class="input-group-text" for="inputGroupSelect02">url_type</label>
        </div>
        <select class="custom-select" id="inputGroupSelect02" ng-model="updateData.type" >
            <option ng-repeat="data in urlType">
                {{data}}
            </option>
        </select>
    </div>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <label class="input-group-text" for="inputGroupSelect01">dataType</label>
        </div>
        <select class="custom-select" id="inputGroupSelect01" ng-model="updateData.dataType" >
            <option ng-repeat="data in dataTypes">
                {{data.dataType}}
            </option>
        </select>
       <!-- <textarea ng-model="updateData.dataType" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>-->
    </div>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-nextButton">next_button</span>
        </div>
        <textarea ng-model="updateData.nextButton" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>
    </div>
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-contentRegex">content_element</span>
        </div>
        <textarea ng-model="updateData.contentElement" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>
    </div>
   <!-- <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" >title_select</span>
        </div>
        <textarea ng-model="updateData.titleSelect" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>
    </div>
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" >content_select</span>
        </div>
        <textarea ng-model="updateData.contentSelect" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-seedUrl"/>
    </div>
-->
    <div class="input-group mb-3" ng-repeat="custom in customResult">
        <div class="input-group-prepend">
            <input class="input-group-text" id="inputGroup-sizing-titleSelect" ng-model="custom.customSelect">
        </div>
        <input ng-model="custom.selectDescribe" type="text" class="form-control" aria-label="Default"
                  aria-describedby="inputGroup-sizing-titleSelect"/>
        <button type="button" data-dismiss="modal" ng-click="deleteParse(custom)" class="close"
                aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" ng-click="cancel()">取消</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="confirm()">保存修改</button>
    </div>
</div>

<div class="modal" id="parse" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">修改解析配置</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
               <div class="input-group mb-3" ng-repeat="dataFormat in dataFormats">
                    <div class="input-group-prepend">
                        <span class="input-group-text" id="inputGroup-sizing-default" ng-model="dataFormat.customSelect">{{dataFormat.customSelect}}</span>
                    </div>
                    <input ng-model="dataFormat.selectDescribe" type="text" class="form-control" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default">
                </div>
               <!--  <div cclass="input-group-text">自定义爬取位置（选择器）</span>
lass="input-group mb-3">
                    <div
class="input-group-prepend">
                        <span                            aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default">
                    </div>
                    <input ng-model="parseConfig.selectDescribe" type="text" class="form-control"
                </div>-->

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal" >取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="commitParse(dataFormats)">
                    保存
                </button>
            </div>
        </div>
    </div>
</div>